#ifndef __INI_FILE_H__
#define __INI_FILE_H__

int 
ini_write (
    const char* file_name,
    const char* section,
    const char* key,
    const char* value );

int 
ini_read_section_list (
    const char* file_name,
    char* buf,
    int   buf_size );

int 
ini_read_key_list (
    const char* file_name,
    const char* section,
    char* buf,
    int   buf_size );

int
ini_read (
    const char* file_name,
    const char* section,
    const char* key,
    char* buf,
    int buf_size );

const char* 
ini_read_string (
    const char* file_name,
    const char* section,
    const char* key,
    const char* def,
    char* buf,
    int buf_size );

int 
ini_read_integer (
    const char* file_name,
    const char* section,
    const char* key,
    int def );

int
ini_read_bool (
    const char* file_name,
    const char* section,
    const char* key,
    int def );

#endif